package Jdbc;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class Work2 {
    public static void main(String[] args) {
        Connection conn = DBUtil.getConnection();
        PreparedStatement stmt = null;
        try {
            stmt = conn.prepareStatement("delete from s_student where stuno=214");
            System.out.println(stmt.executeUpdate());
        } catch (SQLException e) {
            e.printStackTrace();
        } finally {
            DBUtil.close(conn, stmt, null);
        }
    }
}
